package com.example.dockerdemo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author linaq
 * @date 2022-05-15
 */
@RestController
@Slf4j
@RequestMapping("/")
public class IndexController {
    @GetMapping("index")
    public String index() {
        log.info("hello!");
        return "hello world!";
    }
}
